package com.ccloud.gateway;

import com.ccloud.auth.common.security.filter.AuthenticationFilter;
import com.ccloud.gateway.core.config.SysParameterConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(basePackages = {"com.ccloud.gateway", "com.ccloud.common.redis"}/*,excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value = AuthenticationFilter.class)*/)
@EnableConfigurationProperties(value = {SysParameterConfig.class})
public class CCloudGateWayApplication {
    public static void main(String[] args) {
        SpringApplication.run(CCloudGateWayApplication.class);
    }
}
